package com.bestdreamer.thread_volatile;

public class Demo1Run {

    public static void main(String[] args) {
        try{
            Demo1RunThread thread = new Demo1RunThread();
            thread.start();
            Thread.sleep(1000);
            thread.setRunning(false);
            System.out.println("已经复制为 false");
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
